<template>
	<view class="manage-pages">
		<view class="info-item" v-for="item in list" :key="item.id">
			<view class="name">{{item.name}}</view>
			<view class="type">类型：{{item.type}}</view>
			<view class="type">税号：{{item.number}}</view>
			<view class="manage-info">
				<view class="manage-item" @click="navigate('/page_pack/invoice/add?id='+item.id)">
					<view class="iconfont icon-bianji"> </view>
					<view class="text">编辑</view>
				</view>
				<view class="manage-item">
					<view class="iconfont icon-shanchu"> </view>
					<view class="text">删除</view>
				</view>
			</view>
		</view>
		<view class="btn normal" @click="navigate('/page_pack/invoice/add')">
			<view class="iconfont icon-jia"></view>
			<view class="text">新增抬头</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
					id: 1,
					name: '王建国',
					type: '个人',
					number: '622102199906288888'
				}]
			}
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.manage-pages {
		padding: 30rpx;

		.info-item {
			background-color: #fff;
			padding: 30rpx;
			margin-bottom: 30rpx;
			border-radius: 20rpx;

			.name {
				font-size: 34rpx;
				font-weight: bold;
			}

			.type {
				font-size: 30rpx;
				color: #767676;
				margin-top: 20rpx;
			}

			.manage-info {
				display: flex;
				align-items: center;
				justify-content: flex-end;
				margin-top: 30rpx;

				.manage-item {
					display: flex;
					align-items: center;
					justify-content: center;
					background-color: #eeeeee;
					color: #767676;
					width: 140rpx;
					height: 50rpx;
					margin-left: 20rpx;
					border-radius: 30rpx;
					font-size: 26rpx;

					.iconfont {
						margin-right: 10rpx;
					}
				}
			}
		}

		.btn {
			border-radius: 20rpx;

			.iconfont {
				margin-right: 20rpx;
			}
		}
	}
</style>